#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.


AC_PREREQ([2.69])
AC_INIT([stools], [1.0], [xuhuahai@dangdang.com])

AC_CONFIG_SRCDIR([dictionary.h])


# AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([stools], [1.0])

CFLAGS="-O2 -I/usr/local/include -I/usr/include"
LIBS="-L/usr/local/lib -L/usr/local/lib64 -L/lib -L/lib64"

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB([zookeeper_mt], [zookeeper_init], [], [
	echo "Error! You need to have libzookeeper_mt installed!"
	exit 1
])
AC_PROG_LIBTOOL


# Checks for header files.
AC_CHECK_HEADERS([inttypes.h limits.h stdint.h stdlib.h stdio.h string.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_SIZE_T

# Checks for library functions.
AC_CHECK_FUNCS([memmove memset strchr strerror strndup strrchr strtol])

AC_PROG_INSTALL

AC_OUTPUT(Makefile)
